package com.xiangxiangjd.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 处置的物品
 * </p>
 *
 * @author 肖守凯
 * @since 2021-11-23
 */
@TableName("management_goods")
@ApiModel(value="ManagementGoods对象", description="处置的物品")
@Data
public class ManagementGoods extends Model<ManagementGoods> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "物品和处置的中间表")
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "物品id")
    @TableField("goods_id")
    private String goodsId;

    @ApiModelProperty(value = "处置物品id")
    @TableField("management_id")
    private Integer managementId;

    @ApiModelProperty(value = "处置原因")
    @TableField("management_reason")
    private String managementReason;

    @ApiModelProperty(value = "处置物品id")
    @TableField("management_id")
    private Goods goods;

}
